import yaml

#  读取yaml文件
def  read_yaml(filename):
    f = open(file= filename,mode="r+",encoding='utf-8')

    # 将f文件流，转换成字典格式
    data = yaml.load(f, Loader=yaml.SafeLoader)

    return data





